﻿using mars_client.gui.page;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace mars_client.csharp.util
{
    class LogUtil
    {
        public static void console(string message)
        {
            GuiCache guic = GuiCache.Instance;
            SystemMessagePage systemMessagePage = (SystemMessagePage)guic.getGui("SystemMessagePage");
            systemMessagePage.Dispatcher.Invoke(() =>
            {
                systemMessagePage.console(message);
            });
        }
    }
}
